package com.k12.user.service.impl;

import com.k12.user.mapper.SysMenuDao;
import com.k12.user.mapper.SysRoleMenuDao;
import com.k12.user.mapper.SysUserDao;
import com.k12.user.mapper.SysUserRoleDao;
import com.k12.user.model.entity.SysMenu;
import com.k12.user.model.entity.SysUser;
import com.k12.user.model.entity.SysUserRole;
import com.k12.user.service.SysOperatorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysOperatorServiceImpl implements SysOperatorService {

    @Resource
    private SysMenuDao sysMenuDao;

    @Resource
    private SysUserDao sysUserDao;


    @Override
    public List<SysMenu> listMenuInfo(String tenantId, String userId) {
        return sysMenuDao.listMenuInfo(tenantId,userId);
    }

    @Override
    public List<SysUser> selectUserDept(String tenantId, String userId) {
        return sysUserDao.selectUserDept(tenantId,userId);
    }
}
